<!DOCTYPE html>
<html>
<head>
<title>订单</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<script src="../../libs/jquery.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../libs/bootstrap.min.js"></script>
<script src="../../libs/vue.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../js/common.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<a v-if="hasPermission('api:torder:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a v-if="hasPermission('api:torder:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a v-if="hasPermission('api:torder:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">商品名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.productName" placeholder="商品名称"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">产品ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.productId" placeholder="产品ID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">总价格</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.totalPrice" placeholder="总价格"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">卖家ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.saleId" placeholder="卖家ID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">买家ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.userId" placeholder="买家ID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">角色图片(多种，隔开)</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.role" placeholder="角色图片(多种，隔开)"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">试装图</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.szt" placeholder="试装图"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">分镜图</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.fjt" placeholder="分镜图"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">后勤人数</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.hq" placeholder="后勤人数"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">正面照</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.zmz" placeholder="正面照"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">肤质</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.fz" placeholder="肤质"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">风格</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.style" placeholder="风格"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">是否支付</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.ispay" placeholder="是否支付"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">是否接单(0,表示接单，1表示未接单）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.isReceive" placeholder="是否接单(0,表示接单，1表示未接单）"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">是否确认</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.isConfirm" placeholder="是否确认"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">是否评价</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.isComment" placeholder="是否评价"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">风格ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.styleId" placeholder="风格ID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">人数</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.count" placeholder="人数"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">地址</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.address" placeholder="地址"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备注</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.note" placeholder="备注"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">日期</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.calendar" placeholder="日期"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">开始时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.sTime" placeholder="开始时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">结束时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tOrder.eTime" placeholder="结束时间"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="../../js/modules/api/torder.js"></script>
</body>
</html>